package main

import (
	"fmt"
	"reflect"
)

type NewInt = int
type Book struct {
	title   string
	author  string
	subject string
}

func main() {
	type NewInt int
	var intNum NewInt = 10
	fmt.Println("intNum的值为：", intNum, "，类型为：", reflect.TypeOf(intNum))

	var bookOne Book
	bookOne.title = "书籍的名称"
	bookOne.subject = "书籍的主题"
	bookOne.author = "书籍的作者"
	fmt.Println(bookOne)
	fmt.Println(reflect.TypeOf(bookOne))

	bookOne = Book{
		title:   "书籍的名称",
		author:  "作者的名称",
		subject: "书籍的主题"}
	fmt.Println(bookOne)
	fmt.Println(reflect.TypeOf(bookOne))

	bookOne = Book{
		subject: "书籍的主题",
		title:   "数据的名称",
	}
}
